:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', system-ui;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    width: 400px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    transition: color 0.3s;
}

.input-icon input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-icon input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
    outline: none;
}

.input-icon input:focus + label,
.input-icon input:not(:placeholder-shown) + label {
    top: -8px;
    left: 35px;
    font-size: 0.8rem;
    background: white;
    padding: 0 5px;
    color: var(--secondary-color);
}

.input-icon label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    pointer-events: none;
    transition: all 0.3s;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.login-button:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.button-text {
    margin-left: 1rem;
}

.login-button i {
    margin-right: 1rem;
    transition: transform 0.3s;
}

.login-button:hover i {
    transform: translateX(3px);
}

.message {
    display: none;
    padding: 10px;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    transition: opacity 0.5s;
}

.message.error {
    background: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}

.message.success {
    background: #d4edda;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #7f8c8d;
}

.register-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #2980b9;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}